<template>
	<view class="wrap">
		<view class="article-title">{{notice.noticeTitle}}</view>
		<view class="article-meta">
			<span>{{notice.createBy}}</span> 
			<span style="font-size: 26rpx;color: #999999;padding-left: 10px;">{{notice.createTime}}</span>
		</view>
		<view class="article-content">
			<!-- <u-parse :content="notice.noticeContent"></u-parse> -->
			<rich-text :nodes="notice.noticeContent"></rich-text>
		</view>
		<view class="article-foot"></view>
	</view>
</template>
<script>
	import {
		getNoticeData
	} from "@/api/work/notice/notice"

	export default {
		data() {
			return {
				noticeId: undefined,
				notice: {},
			};
		},
		onLoad(option) {
			// 获取设备信息
			const app = this
			app.noticeId = option.noticeId;
			getNoticeData(app.noticeId).then(res => {
				console.log(res.data)
				app.notice = res.data
			})
		},
		methods: {

		}
	};
</script>
<style lang="scss">
	page {
		background-color: #ffffff;
	}

	.article-title {
		font-size: 35rpx;
		font-weight: 400;
		text-align: left;
		padding-bottom: 10rpx;
		font-weight: bold;
		margin: 30rpx 30rpx 0;
		color: #333333;
	}

	.article-meta {
		padding: 10rpx 30rpx 30rpx;
		color: #999999;
		border-bottom: 1px solid #ededed;
	}

	.article-content {
		padding: 30rpx 30rpx 0rpx;
		font-size: 30rpx;
	}

	.article-foot {
		padding: 0 30rpx 20rpx;
		font-size: 26rpx;
		color: #999999;
	}
</style>